#include "unitclass.h"

UnitClassProperties::UnitClassProperties() : availableWeapons(8), availableArmors(8), availableClasses(8)
{
}

UnitClassFactory& UnitClassFactory::getInstance()
{
    static UnitClassFactory instance;
    return instance;
}

UnitClassFactory::UnitClassFactory()
{
    //Predefined classes definition
    m_classes[MONSTER].name = "Monster";

    m_classes[WARRIOR].name = "Warrior";
    m_classes[WARRIOR].rank = 1;
    m_classes[WARRIOR].moveBonus = 2;
//  m_classes[WARRIOR].availableArmors.fill(true);

    m_classes[WHITE_MAGE].name = "White Mage";

    m_classes[BLACK_MAGE].name = "Black Mage";

    m_classes[THIEF].name = "Thief";
}

